package com.hwy.catering.utils;

/**
 * 常量池
 */
public class ConstantPool {
    /**
     * 手机号正则
     */
    public static final String PHONE_REGEX = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$";

    /**
     * token的redis key前缀
     */
    public static final String TOKEN_KEY = "login:token:";

    /**
     * token的过期时间
     */
    public static final Long TOKEN_KEY_TTL = 30L;

    /**
     * 存用户token
     */
    public static final String USER_TOKEN_KEY = "user:token:";

    /**
     * user:token: 过期时间
     */
    public static final Long USER_TOKEN_KEY_TTL = 30L;

    /**
     * 存所有类别的redis key前缀
     */
    public static final String CATEGORY_ALL_KEY = "category:all";

    /**
     *
     */
    public static final Long CATEGORY_ALL_KEY_TTL = 20L;
}
